package BLL;

import java.util.Scanner;

import exer.gaga;

public class tianjiahuiyuan {
public static void tianjia(){
	int[]userId=gaga.initUserIdArray();
	int[]userAge=gaga.initUserAgeArray();
	int[]userJifen=gaga.initUserJifenArray();
	Scanner scanner=new Scanner(System.in);
	System.out.println("请输入用户编号");
	int ID=scanner.nextInt();
	System.out.println("请输入用户年龄");
	int age=scanner.nextInt();
	System.out.println("请输入用户积分");
	int jifen=scanner.nextInt();
	for (int i = 0; i < userId.length; i++) {
		if (userId[i]==0&&userAge[i]==0) {
			userId[i]=ID;
			userAge[i]=age;
			break;
		}
		System.out.println("请按'u'返回主菜单");
		String num=scanner.next();
		while (true) {
			if (num.equals("u")) {
				vip.vipguanli();
				break;
			}else {
				System.out.println("你输入的有误");
				break;
	}
		}
	}
}
}
